package com.topc.participant.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.topc.core.po.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 角色资源中间关系表
 * </p>
 *
 * @author itcast
 */
@Data
@TableName("role_menu_mid")
@Accessors(chain = true)
public class RoleMenuMid  {

    @ApiModelProperty("序列id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 资源id
     */
    private Long menuId;
    /**
     * 角色id
     */
    private Long roleId;

    @ApiModelProperty(name = "创建时间", notes = "")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
